package admin

import (
	auto "beergo/app/check/auto/controller"
	"beergo/app/check/conf"
	"github.com/beego/beego/v2/server/web"
)

type ArticleAdminController struct {
	auto.ArticleController
}

func init() {
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/:id", 		&ArticleAdminController{}, "*:GetAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/info", 		&ArticleAdminController{}, "*:InfoAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/scan", 		&ArticleAdminController{}, "*:ScanAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/list", 	    &ArticleAdminController{}, "*:ListAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/update", 	&ArticleAdminController{}, "*:UpdateAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/create", 	&ArticleAdminController{}, "*:CreateAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/copy", 	    &ArticleAdminController{}, "*:CopyAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/edit", 	    &ArticleAdminController{}, "*:EditAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/delete", 	&ArticleAdminController{}, "*:DeleteAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/:id/:field", &ArticleAdminController{}, "*:SonsAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/choice", &ArticleAdminController{}, "*:ChoiceAction")
	web.Router("/check" + conf.UrlPrefixAdmin + "/Article/category", &ArticleAdminController{}, "*:CategoryAction")
}
//func (this *ArticleAdminController) Prepare() {}
//func (this *ArticleAdminController) ListAction() {}
//func (this *ArticleAdminController) GetAction() {}
//func (this *ArticleAdminController) InfoAction() {}
//func (this *ArticleAdminController) ScanAction() {}
//func (this *ArticleAdminController) CreateAction() {}
//func (this *ArticleAdminController) UpdateAction() {}
//func (this *ArticleAdminController) CopyAction() {}
//func (this *ArticleAdminController) DeleteAction() {}
//func (this *ArticleAdminController) EditAction() {}
//func (this *ArticleAdminController) SonsAction() {}
//func (this *ArticleAdminController) ChoiceAction() {}
//func (this *ArticleAdminController) CategoryAction() {}
